<?php


namespace App\Http\Controllers;

use App\Models\Category;
use App\Models\Filter;

class ContactController
{
    public function contact()
    {
        $catelist = Category::getCateListBy('contact');
        //Filter::resourceLink('https://www.szweb.cn/contact');
        Filter::cutStr(
            'https://www.szweb.cn/contact',
            '<div class="contact-ways">',
            '<div class="full-related-news">',
            'contact/contact'
        );
        $cate = Category::getCateByTargetName("contact");
        return view("contact.contact",compact("cate", "catelist"));
    }


    public function jobs()
    {
        $catelist = Category::getCateListBy('contact');
        //Filter::resourceLink('https://www.szweb.cn/jobs');
        Filter::cutStr(
            'https://www.szweb.cn/jobs',
            '<div class="recruit-content weblg clearfix">',
            '<div class="full-related-news">',
            'contact/jobs'
        );
        $cate = Category::getCateByTargetName("jobs");
        return view("contact.jobs",compact("cate", "catelist"));
    }
}